package com.info.zhiduoduo.repository.dto.quota;

import com.info.zhiduoduo.repository.entity.quota.ZhiduoduoCityQuota;

import org.springframework.beans.BeanUtils;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ZhiduoduoCityQuotaDto {

	@ApiModelProperty("主键id")
	private Integer id;
	/**
	 * 城市配置id
	 */
	@ApiModelProperty("城市配置id")
	private Integer configId;

	/**
	 * 单笔项目限额
	 */
	@ApiModelProperty("单笔项目限额")
	private Double singleQuota;

	/**
	 * 月度限额
	 */
	@ApiModelProperty("月度限额")
	private Double monthlyQuota;

	/**
	 * 季度限额
	 */
	@ApiModelProperty("季度限额")
	private Double quarterlyQuota;

	/**
	 * 年度限额
	 */
	@ApiModelProperty("年度限额")
	private Double yearlyQuota;

	public ZhiduoduoCityQuota toEntity() {
		ZhiduoduoCityQuota zhiduoduoCityQuota = new ZhiduoduoCityQuota();
		BeanUtils.copyProperties(this, zhiduoduoCityQuota);
		return zhiduoduoCityQuota;
	}
}
